home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
comm
/
prtcs155.zip
/
AUXSHELL.DOC
< prev
next >
Wrap
Text File
|
1994-01-14
|
4KB
|
112 lines
$VER: AUXshell DOC Remote CLI and DOOR Handling Williamson 55.01
AUX HANDLERS
I've only worked with the Citadel AUX: handler, which is
based upon Steve Drew's AUX handler. However, both should work.
For more info file request these from FidoNet#1:167/104.0:
CTDLAUX.LHA
AUXSUPPORT_V2.LHA
The above are also available via FTP from AmiNet.
Neither allows changing device or unit, so I have provided two
versions of ctdl-handler,one for serial.device and one modified for
artser.device. Both are for unit 0. Just copy the one yiu need to L:
and rename to ctdl-handler. If you use some other serial device, Hex
edit the handler to change the device name. Unfortunatly, I have no
idea how to change the unit number.
REMOTE SHELL
Presently the Shell feature requires CTDL-AUX: device.
*Gen.CFG:
SYSOPPW TESTPW
You must set ENV:TESTPW (AND ENVARC:TESTPW !!) to the password you
wish to use to start the remote shell. This password may be a string.
eg: You could run in this your startup sequence..
S:SetPW
SetEnv TESTPW golemstrikes
SetEnv golemstrikes "My precious"
copy env:testpw envarc:
copy env:golemstrikes envarc:
Launching
The mailer does a case-sensitive compare of user input against
the contents of the Env: variable whoese NAME is stored in the ENV:
variable defined by SYSOPPW keyword. (confused?:) If this variable is
undefined, it defaults to SYSOPPW and is empty.
eg:
Cmp $(namebuf) "${${TESTPW}}" ; this gets the value of the env
; variable, the name of which is
; stored in ENV:TESTPW
TrueJump loadshell
....
If the user types: My precious , the shell will be
launched.
....
loadshell:
Set user TRUE username "THE SYSOP"
RexxMsg "RY,SY" REXX "Address COMMAND \"Execute Mail:Scripts/AUXCLI\""
Jump do_menu
The user and username variables are set so that bulletin
display and username prompt are bypassed.
Mail:scripts/AUXcli
; Script to be executed from wpl to start remote shell
; Saves its process number, starts-up the remote shell
; and waits up to 30 mins for a BREAK.
SetEnv AUXWAIT $process
NEWCLI from Mail:Scripts/AuxCLI-Startup CTDL-AUX:
; If we exit now, control will go back to mailer allowing it
; to muck up the serial port. So wait for newcli'd process to exit.
Wait 30 min ; wait until timeout or exiting aux process kills us
echo >CTDL-AUX:endcli
UnSetENV AUXWait
;return to wpl
Mail:scripts/AUXcli-Startup
; Startup-Script executed by AUXCLI
; Sets a QUIT alias which will issue a BREAK command to
; AUXcli.
; You may run a more secure shell such as CSH or AXsh
; from this script. (See Steve Drews' AUXSUPPORT.LHA)
failat 99
stack 10000
alias quit "break >nil: $auxwait c"
Mail:scripts/AUXkill
Echo >CTDL-AUX:endcli ;End AUX cli
DOORS
Any CLI door or program which can be exited with a BREAK
command may be used. The i/o will be redirected to the modem using
the CTDL-AUX: device. DOOR.wplrx starts Carrier.rexx asyncronously
to monitor the CARRIER of the line and then starts the door. If
carrier drops while a door is active, a BREAK command will be sent to
the door.
The description field must be in quotes. The door launch
command does not require enclosing quotes, but any embedded quotes
that the door may require, must be escaped with a backslash.
"description" launch command
DOOR "Adventure in The Collossal Cave" DOORS:adv/adventure
DOOR "StarTrek" RexxC:rx DOORS:StarTrek \"$$(username)\"
DOOR "Grin of the Day" RexxC:rx Rexx:rexxdoors/Grin_du_Jour
DOOR "Fortune" RexxC:rx Rexx:rexxdoors/Your_Fortune
-eot-